<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #all {
            height: 420px;
            width: 350px;
            border-radius: 8px;
            border: 1px solid silver;
        }

        .f1 {
            height: 50px;
            padding-top: 20px;
            padding-left: 20px;
            background-color: rgb(9, 162, 223);
            background-position: 20px 20px;
            background-image: url(image/bg.gif);
            background-repeat: no-repeat;
            text-indent: 40px;
            font-size: 14px;
            color: white;
        }

        .all2 {
            padding-top: 20px;
            background-position: center center;
            background-image: linear-gradient(rgb(9, 162, 223), white, white, white, white);
            margin-top: 2px;
        }

        .f2:nth-of-type(1) {
            padding-left: 20px;
            background-position: 600px;
            background-image: url(image/dotBg.gif);
        }

        .f2:nth-of-type(2) {
            background-position: 600px;
            background-image: url(image/dotBg.gif);
        }

        .f2:nth-of-type(3) {
            background-position: 600px;
            background-image: url(image/dotBg.gif);
        }
        .f2:nth-of-type(4) {
            background-position: 600px;
            background-image: url(image/dotBg.gif);
        }
        .f2:nth-of-type(5) {

            background-position: 600px;
            background-image: url(image/dotBg.gif);
        }
        .f2:nth-of-type(6) {

            background-position: 600px;
            background-image: url(image/dotBg.gif);
        }
        h2:hover {
            color: red;
            cursor: pointer
        }
    </style>
</head>

<body>
    <div id="all">
        <div class="f1">
            <h3>中心开班信息</h3>
        </div>
        <div class="all2">
            <div class="f2">
                <h2>8月12日：学历+技能班</h2>
                <h2>8月16日：高考特招班</h2>
                <h2>8月23日：Java精英班</h2>
                <h2>8月31日：学士后强化班</h2>
                <h2>9月5日：大学生就业班</h2>
                <h2>9月9日：企业定向委培班</h2>
                <h2>9月16日：网络营销强化班</h2>
            </div>
        </div>
    </div>
</body>

</html>